#!/usr/bin/env bash
# Copyright (c) 2023 The Toltec Contributors
# SPDX-License-Identifier: MIT

archs=(rm1os2 rm1os3 rm2os2 rm2os3)
pkgnames=(toltec-deletions)
pkgdesc="Metapackage to handle package deletions between OS versions"
url=https://toltec-dev.org/
pkgver=0.1-9
timestamp=2023-12-03T04:51:58Z
section="utils"
maintainer="Eeems <eeems@eeems.email>"
license=MIT
installdepends=(toltec-bootstrap)
conflicts_rm1os2=()
replaces_rm1os2=()
conflicts_rm2os2=()
replaces_rm2os2=()
conflicts_rm1os3=(
    ddvk-hacks
    fuse
    wireguard
    innernet-client
    gocryptfs
    remarkable-stylus
)
replaces_rm1os3=(
    ddvk-hacks
    fuse
    wireguard
    innernet-client
    gocryptfs
    remarkable-stylus
)
conflicts_rm2os3=(
    ddvk-hacks
    fuse
    wireguard
    innernet-client
    gocryptfs
    remarkable-stylus
    open-remarkable-shutdown
)
replaces_rm2os3=(
    ddvk-hacks
    fuse
    wireguard
    innernet-client
    gocryptfs
    remarkable-stylus
    open-remarkable-shutdown
)

source=()
sha256sums=()

package() {
    # This should be fully reinstalled on reenable
    # So add a file to root
    mkdir -p "$pkgdir"/usr/share/toltec/reenable.d
    touch "$pkgdir"/usr/share/toltec/reenable.d/toltec-deletions
}
